import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import api from '@/request/api';
import locale from 'element-plus/lib/locale/lang/zh-cn'
import 'element-plus/lib/theme-chalk/index.css'
import '@/styles/normalize.css'

const app = createApp(App);
app.use(store).use(router).use(ElementPlus, { locale }).mount('#app')
app.config.globalProperties.$api = api;
// 禁用返回
window.addEventListener('popstate', function () {
    history.pushState(null, null, document.URL)
})
